package com.blog.utils;

public interface ConstantUtil {

	/**
	 * 提交类型Key
	 */
	public static final String DO_TYPE = "formSubmit";
	
	/**
	 * 提交表单SessionKey
	 */
	public static final String FORM_SESSION_KEY = "formSessionKey";

	/**
	 * 根目录Key
	 */
	public static final String BASE_PATH = "basePath";

	/**
	 * 验证码SessionKey
	 */
	public static final String V_CODE = "vCode";
	/**
	 * 门户SessionKey
	 */
	public static final String LOGIN_USER_BEAN = "loginUserBean";
	/**
	 * 后台管理SessionKey
	 */
	public static final String LOGIN_ADMIN_USER_BEAN = "loginAdminUserBean";

	/**
	 * 字符串[0-9a-zA-Z]
	 */
	public static final String STRING_CODE = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	/**
	 * 字符串[0-9A-Z]
	 */
	public static final String STRING_CODE_UP = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ";

	/**
	 * 访问URI
	 */
	public static final String REQUEST_URI = "requestURI";

	/**
	 * 消息提示
	 */
	public static final String MSG = "msg";
	
	/**
	 * resultInfo
	 */
	public static final String RESULT_INFO = "resultInfo";

	/**
	 * 十六进制Char数组
	 */
	public static final char[] HEX_DIGITS = { '0', '1', '2', '3', '4', '5',
			'6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };

	/**
	 * 电子邮件验证正则表达式
	 */
	public static final String REG_EMAIL = "^[a-z0-9]+([-_]?[a-z0-9]+)*@[a-z0-9]+([-_]?[a-z0-9]+)(\\.[a-z0-9]+([-_]?[a-z0-9]+)*)+$";
}
